package com.lxy.service;


import org.springframework.core.io.InputStreamSource;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

public interface MinioService {

    /**
     * 文件上传
     * @param bucketName
     * @param file
     * @return
     */
    public String upload(String bucketName, MultipartFile file);


    /**
     * 文件下载
     * @param url
     * @return
     */
    public ResponseEntity<InputStreamSource> download(String url);

}
